A Proposal for Normalized Lack of Cohesion in Method (LCOM) Metric Using Field Experiment

نویسنده

  • Ezekiel Okike
چکیده

Chidamber and Kemerer first defined a cohesion measure for object-oriented software – the Lack of Cohesion in Methods (LCOM) metric. One of the critique of the LCOM metric is that the metric does not yield normalized or standardized values, and as such, the metric does not seem appealing to a section of the software engineering community. This paper presents an approach for normalizing the LCOM metric so that most practioners would find it as useful as its variant measures such as Tight Class Cohesion (TCC), Low Class Cohesion (LCC), Degree of Cohesion in a Class based on direct relation between its public relations (DCD) and that based on indirect methods (DCI). Data for this study was gathered from three industrial systems. System 1 has 34 classes, System 2 has 383 classes and System 3 has 1055 classes. The main objectives of the study were to apply different normalization approaches in order to determine the best for the LCOM metric. Three normalization techniques namely Sigmoid normalization, Bowless normalization, and Bestfit normalization were used in the study of the selected test systems. The result of the study showed that the Bestfit approach seem to be the best LCOM normalization approach.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Pedagogical Evaluation and Discussion about the Lack of Cohesion in Method (LCOM) Metric Using Field Experiment

Chidamber and Kemerer first defined a cohesion measure for object-oriented software – the Lack of Cohesion in Methods (LCOM) metric. This paper presents a pedagogic evaluation and discussion about the LCOM metric using field data from three industrial systems. System 1 has 34 classes, System 2 has 383 classes and System 3 has 1055 classes. The main objectives of the study were to determine if t...

متن کامل

Observations on Lack of Cohesion Metrics

Lack of Cohesion Metric (LCOM) is perhaps the most used metric when trying to measure the goodness of a class written in some object-oriented language. We apply the basic LCOM metric to the Java SDK 5.0 and Eclipse libraries. LCOM gives a bad value for most of the classes. We study the reasons and characterize sets of classes for which one should not apply LCOM to determine the goodness of an i...

متن کامل

A Practical Look at the Lack of Cohesion in Methods Metric

Software metrics for the procedural software development paradigm have been extensively studied. Metrics such as McCabe's cyclomatic complexity metric 1 and Halstead's Software Science metrics 2 are well known and frequently used to measure software complexity in the procedural paradigm. More recently, software metrics that are tailored to the measurement of design complexity in the object-orie...

متن کامل

Improving Object-Oriented Lack-of-Cohesion Metric by Excluding Special Methods

Classes are the basic units in object-oriented programs, and therefore, their quality has impact on the overall quality of the software. Class cohesion is a key quality factor, and it refers to the degree of relatedness of class attributes and methods. Software developers use class cohesion measure to assess the quality of their products and to guide the restructuring of poorly designed classes...

متن کامل

A Class Cohesion Metric For Object-Oriented Designs

Cohesion is a measure of relatedness or consistency in functionality of a software component. It is a highly desirably design characteristic because it measures separation of responsibilities, independence of components, and control of complexity. Cohesion has a significant effect on a design’s understandability, effectiveness and adaptability. An early evaluation of design components for cohes...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010